package com.ruoyi.inducePest.mapper;

import com.ruoyi.inducePest.domain.ChangeRecord;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author DELL
 */
@Repository
public interface ChangeRecordMapper {


    /**
     * * 插入数据库
     *
     * @param changeRecord 参数
     * @return
     */
    public int insertChangeInfo(ChangeRecord changeRecord);


    /**
     * 查询列表
     *
     * @param changeRecord
     * @return
     */
    public List<ChangeRecord> getInfoByCondition(ChangeRecord changeRecord);

    /**
     * 根据ID查询信息
     * @param id
     * @return
     */
    public ChangeRecord selectInfoById(int id);

    /**
     * 删除数据
     *
     */
    public Integer deleteInfo(int id);

}
